package cn.powertime.evaluation.service.impl;

import cn.powertime.evaluation.entity.CpsCourse;
import cn.powertime.evaluation.mapper.CpsCourseMapper;
import cn.powertime.evaluation.service.CpsCourseService;
import cn.powertime.evaluation.vo.*;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 课程表 服务实现类
 * </p>
 *
 * @author liqi
 * @since 2019-09-23
 */
@Service
public class CpsCourseServiceImpl extends ServiceImpl<CpsCourseMapper, CpsCourse> implements CpsCourseService {

    @Autowired
    private CpsCourseMapper cpsCourseMapper;

    @Override
    public IPage<WebRespCourseListVo> pageList(Page page, WebReqCourseSearchVo params, Long uid) {
        return cpsCourseMapper.pageList(page,params,uid);
    }

    @Override
    public List<WebRespIndexCourseListVo> indexList(Integer type) {
        return cpsCourseMapper.indexList(type);
    }

    @Override
    public List<WebRespCourseAllListVo> allList() {
        return cpsCourseMapper.allList();
    }

    @Override
    public WebRespCourseAllListVo courseCPE(String time) {
        return cpsCourseMapper.courseCPE(time);
    }

    @Override
    public IPage<WebRespCourseRecordListVo> recordList(Page page, Long uid) {
        return cpsCourseMapper.recordList(page,uid);
    }
}
